﻿using System;
using System.Collections.Generic;
using System.Text;
using TMSIM.Client.BizGIS.Interface;

namespace TMSIM.Client.BizGIS.Business
{
    public class DispalyCarsCtrlImpl:MapFeature,IDisplayCarsCtrl
    {
        private DisplayCarsCtrlHelper _helper =
            new DisplayCarsCtrlHelper();

        #region IDisplayCarsCtrl 成员
        /// <summary>
        /// 监控指定的监控车辆，其他车辆不显示在地图上
        /// </summary>
        /// <param name="etys"></param>
        /// <returns></returns>
        public virtual bool StakeoutSpecificCars(SysCommon.Entity.Business.LatestGPS_Ety[] etys)
        {
            if (etys == null) return false;

            _helper.DisplayCars(etys);
            return true;
        }
        public virtual bool StakeoutSpecificCars2(Dictionary<string, int> Dicgps)
        {
            if (Dicgps == null) return false;

            _helper.DisplayCarByMap( Dicgps);
            return true;
        }
        public virtual bool StakeoutSpecificCars(string[] carplates)
        {
            return false;
        }
        #endregion
    }
}
